package com.isoft.demooa.dao;

import com.isoft.demooa.entity.Edu;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EduMapper {

    /*alt + enter*/
    @Select("select * from tb_edu")
    @Results(value = {
            @Result(column = "id",property = "eduId"),
            @Result(column = "title",property = "title")
    })
    List<Edu> selectAll();
}
